using System;
using System.ComponentModel.DataAnnotations;

namespace Api.Demo.Entity
{
    public class Users
    {
        public Users()
        {
            IsActived=1;
            IsDeleted=0;
            CreatedAt=DateTime.Now;

        }

        public int Id { get; set; }

        [Required,MaxLength(20)]
        public string Username { get; set; }

         [Required,MaxLength(20)]
        public string Password { get; set; }
        
        public byte IsActived { get; set; }

        public byte IsDeleted { get; set; }

        public DateTime CreatedAt { get; set; }

        public DateTime? DeletedAt { get; set; }

        [MaxLength(500)]
        public string Remarks { get; set; }

    }
}